package com.zjyd.douyangcommoncore.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 视频上传VO
 */
@Schema(description = "视频表单上传VO")
@Data
public class DyVideoUploadVo {
    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Size(min = 1, max = 20, message = "标题长度不能小于1位，不能大于20位")
    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    /**
     * 视频内容
     */
    @NotBlank(message = "视频内容不能为空")
    @Size(min = 1, max = 60, message = "视频内容不能小于1位，不能大于60位")
    @Schema(description = "视频内容", requiredMode = Schema.RequiredMode.REQUIRED)
    private String videoContent;

    /**
     * 视频播放地址
     */
    @NotBlank(message = "视频播放地址不能为空")
    @Schema(description = "视频播放地址", requiredMode = Schema.RequiredMode.REQUIRED)
    private String videoUrl;
}
